#include "gewBone.h"
gewBone* gewBone::getBoneName(string &boneName)
{
	if( name.compare(boneName)==0)
		return this;
	gewBone* bone = 0;
	for(int i=0;i< children.size();i++)
	{
		bone = children[i]->getBoneName(boneName);
		if( bone )
			return bone;
	}
	return 0;
}